home *** CD-ROM | disk | FTP | other *** search
- Path: news.ucdavis.edu!hercules
- From: djsecrist@ucdavis.edu (Daniel J. Secrist)
- Newsgroups: comp.lang.c
- Subject: Re: === GET_CHAR and others ===
- Date: Tue, 02 Apr 96 04:59:41 GMT
- Organization: University of California, Davis
- Distribution: world
- Message-ID: <4jqcba$fn0@mark.ucdavis.edu>
- References: <315FD0E1.41C6@cell.co.uk> <Pine.A32.3.91.960401134012.57486C-100000@black.weeg.uiowa.edu>
- NNTP-Posting-Host: reqf-072.ucdavis.edu
- X-Newsreader: News Xpress 2.0 Beta #0
- Keyword: What about on a PC?
-
- In article <Pine.A32.3.91.960401134012.57486C-100000@black.weeg.uiowa.edu>, The Amorphous Mass <robinson@blue.weeg.uiowa.edu> wrote:
- >On Mon, 1 Apr 1996, Kai Chan wrote:
- >
- >> Hi,
- >> I'm trying to read a character at a time from the keyboard without
- >> having to press return everytime. Someone said getch() but it doesn't
- >> seem to work, can anyone give me an example or something?
- >> I'm working on a IRIX platform.
- >
- > You have to use a call to the IRIX API to do this. I believe the call
- >you want is ioctl(), but my advice is worth at most what you paid for it. :-)
- >Any solution you do come up with will be nonportable. Look in the
- >comp.unix.programmer FAQ. If it's a FAQ here, I'm sure it's a FAQ there.
- >
- >/**James Robinson***********************
- > "An important goal of almost every graphics program is to draw pictures on
- > the screen." -- Neider, Davis & Woo, _OpenGL_Programming_Guide_, Chapter 10
- > *************james-robinson@uiowa.edu**/
- >
- >
- >
-
- How would you do this on a PC using Borland C++ v4.52? I don't care about
- portability. Thanks...
-